package csel.model;

interface LoaderSaver
{
	/**
	 * Load GameData from the specified path.
	 * @throws java.io.FileNotFoundException if the path cannot be opened
	 * @throws csel.model.GameLoadException if the specified file is corrupted
	 */
	GameData load(String filepath) throws java.io.FileNotFoundException;

	/**
	 * Save the specified GameData to the specified path.
	 * @throws java.io.FileNotFoundException if the file cannot be created
	 * @throws java.io.IOException if a write error occurred
	 */
	void save(String filepath, GameData data)
			throws java.io.FileNotFoundException, java.io.IOException;
}
